<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD>
   <TITLE>template<class T_> struct  osgParticle::range</TITLE>
   <META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">

<H2>template&lt;class T_&gt; struct  <A HREF="#DOC.DOCU">osgParticle::range</A></H2></H2><BLOCKQUOTE> A simple struct template useful to store ranges of values as min/max pairs.</BLOCKQUOTE>

<HR>
<P><DL>
 <DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>T_ <B><A HREF="#DOC.2.22.1">min</A></B>
<DD><I>Lower bound</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>T_ <B><A HREF="#DOC.2.22.2">max</A></B>
<DD><I>Higher bound</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.22.3">range</A></B>()
<DD><I>Construct the object by calling default constructors for min and max</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.22.4">range</A></B>(const T_ &amp;mn, const T_ &amp;mx)
<DD><I>Construct and initialize min and max directly</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.22.5">set</A></B>(const T_ &amp;mn, const T_ &amp;mx)
<DD><I>Set min and max</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>T_ <B><A HREF="#DOC.2.22.6">get_random</A></B>() const 
<DD><I>Get a random value between min and max</I>
</DL></P>


<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>
A simple struct template useful to store ranges of values as min/max pairs.
This struct template helps storing min/max ranges for values of any kind; class <CODE>T_</CODE> is
the type of values to be stored, and it must support operations <CODE>T_ + T_</CODE>, <CODE>T_ - T_</CODE>, 
and <CODE>T_ * float</CODE>, otherwise the <CODE>get_random()</CODE> method will not compile.
This struct could be extended to customize the random number generator (now it uses only 
<CODE>std::rand()</CODE>).</BLOCKQUOTE>
<DL>

<A NAME="min"></A>
<A NAME="DOC.2.22.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>T_ min</B></TT>
<DD>Lower bound
<DL><DT><DD></DL><P>
<A NAME="max"></A>
<A NAME="DOC.2.22.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>T_ max</B></TT>
<DD>Higher bound
<DL><DT><DD></DL><P>
<A NAME="range"></A>
<A NAME="DOC.2.22.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> range()</B></TT>
<DD>Construct the object by calling default constructors for min and max
<DL><DT><DD></DL><P>
<A NAME="range"></A>
<A NAME="DOC.2.22.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> range(const T_ &amp;mn, const T_ &amp;mx)</B></TT>
<DD>Construct and initialize min and max directly
<DL><DT><DD></DL><P>
<A NAME="set"></A>
<A NAME="DOC.2.22.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void set(const T_ &amp;mn, const T_ &amp;mx)</B></TT>
<DD>Set min and max
<DL><DT><DD></DL><P>
<A NAME="get_random"></A>
<A NAME="DOC.2.22.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>T_ get_random() const </B></TT>
<DD>Get a random value between min and max
<DL><DT><DD></DL><P></DL>
<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>
